<?php
/* SVN FILE: $Id: default.ctp 7945 2008-12-19 02:16:01Z gwoo $ */
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @version       $Revision: 7945 $
 * @modifiedby    $LastChangedBy: gwoo $
 * @lastmodified  $Date: 2008-12-18 18:16:01 -0800 (Thu, 18 Dec 2008) $
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>


	<?php echo $html->charset(); ?>
	<title>
		<?php echo __('Gest&atilde;o Empresarial') . ' ' . __('Versão - ',true)  . Configure::read('versao'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $html->meta('icon');

		echo $html->css('segmentum.generic');
		echo $html->css('cake.generic');
		echo $html->css('list');
		echo $html->css('menu');
		echo $javascript->link('segmentum.js');
		echo $javascript->link('scriptaculous-js-1.8.3/lib/prototype.js');
		echo $javascript->link('scriptaculous-js-1.8.3/src/scriptaculous.js?load=effects');
		echo $html->charset('UTF-8');
		echo $scripts_for_layout;
	?>
</head>
<body>
	<div id="container">
		<div id="header">
			<div style="float:left">
			<h1>
			<?php 
				echo $html->link(__('Gestão Empresarial', true), '/'); 
			?>
			</h1>
			</div>
			<div id="right" style="float:rigth">
			<?php
				//echo $this->element('internationalization_menu');
			?>
			<?php 
				if ($session->read('User.name') != ''){
					echo $html->link(__("Sair",true),"/logouts");
					echo "&nbsp;";	
					echo "&nbsp;";	
					echo "&nbsp;";	
					if($session->read('Config.language') == 'en'){
						echo $html->image('/img/en_US.png');
					}else{
						echo $html->image('/img/pt_BR.png');
					}
				}
			?>
			</div>
		</div>
		<hr />
		<div id="menu">
		<?php
				if ($session->read('User.name') != ''){
					echo $this->element('menu_suspenso');
				}
		?>
		</div>
			<div id="content">
			<?php $session->flash(); ?>
			<div id="carregando"><center><div style="background-color:#ECD672;width:80px">&nbsp;Loading...&nbsp;&nbsp;&nbsp;</div></center> </div>
			<?php echo $content_for_layout; ?>

		</div>
		<div id="footer">
			<?php echo $this->Html->link(
					$this->Html->image('cake.power.gif', array('alt'=> __('CakePHP: the rapid development php framework', true), 'border' => '0')),
					'http://www.cakephp.org/',
					array('target' => '_blank', 'escape' => false)
				);
			?>
		</div>
	</div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>

